package com.weimob.user.service.impl;

import com.alibaba.dubbo.config.annotation.Service;
import com.weimob.bean.User;
import com.weimob.service.UserService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

import java.util.ArrayList;
import java.util.List;

/**
 * @author cyt
 * @create 2021-03-05 12:29
 */
//version = "1.0"
@Service()
@Component
@Slf4j
public class UserServiceImpl implements UserService {

    @Override
    public List<User> getUserAddressList(String userId) {
        log.info("version = \"1.0\"  select userId "+ userId);
        User address1 = new User(1, "北京市昌平区宏福科技园综合楼3层", "1", "李老师", "010-56253825", "Y");
        User address2 = new User(2, "深圳市宝安区西部硅谷大厦B座3层（深圳分校）", "1", "王老师", "010-56253825", "N");
        ArrayList<User> list = new ArrayList<>();
        list.add(address1);
        list.add(address2);
        return list;
    }
}
